package pers.xhh.shopapi.entity.to.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author wei-xhh
 * @date 2020-11-23
 */
public class MiManagerUpdateTo {
    @NotBlank(message = "更新邮箱为空")
    @Pattern(regexp = "^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\\.[a-zA-Z0-9_-]+)", message = "邮箱格式错误")
    private String email;
    @NotBlank(message = "更新手机号为空")
    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$", message = "手机号格式错误")
    private String mobile;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
